package org.gd.hellojaxb.privat24.cardlist;

import org.gd.hellojaxb.adapters.DoubleAdaptersFactory;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

@XmlRootElement(name = "row")
@XmlAccessorType(XmlAccessType.FIELD)
public class SCardListItem {
    
    @XmlElement(name = "account")
    private SAccount account;
    @XmlElement(name = "info")
    private String info;
    @XmlElement(name = "data")
    private String data;
    @XmlElement(name = "dynamic")
    @XmlJavaTypeAdapter(DoubleAdaptersFactory.Amount.class)
    private Double dynamic;
    @XmlElement(name = "balans")
    @XmlJavaTypeAdapter(DoubleAdaptersFactory.Amount.class)
    private Double balance;
    @XmlElement(name = "avbalans")
    @XmlJavaTypeAdapter(DoubleAdaptersFactory.Amount.class)
    private Double avBalance;
    @XmlElement(name = "state")
    private String state;
    @XmlElement(name = "errcode")
    private String errCode;
    @XmlElement(name = "errmessage")
    private String errMessage;
    @XmlElement(name = "holded")
    @XmlJavaTypeAdapter(DoubleAdaptersFactory.Amount.class)
    private Double hold;
    @XmlElement(name = "contracttype")
    private String contractType;
    @XmlElement(name = "rest")
    @XmlJavaTypeAdapter(DoubleAdaptersFactory.Amount.class)
    private Double rest;
    @XmlElement(name = "tradelimit")
    @XmlJavaTypeAdapter(DoubleAdaptersFactory.Amount.class)
    private Double tradeLimit;
    @XmlElement(name = "finlimit")
    @XmlJavaTypeAdapter(DoubleAdaptersFactory.Amount.class)
    private Double finLimit;

    public SCardListItem() {
    }

    public SAccount getAccount() {
        return account;
    }

    public SCardListItem setAccount(SAccount account) {
        this.account = account;
        return this;
    }

    public String getInfo() {
        return info;
    }

    public SCardListItem setInfo(String info) {
        this.info = info;
        return this;
    }

    public String getData() {
        return data;
    }

    public SCardListItem setData(String data) {
        this.data = data;
        return this;
    }

    public Double getDynamic() {
        return dynamic;
    }

    public SCardListItem setDynamic(Double dynamic) {
        this.dynamic = dynamic;
        return this;
    }

    public Double getBalance() {
        return balance;
    }

    public SCardListItem setBalance(Double balance) {
        this.balance = balance;
        return this;
    }

    public Double getAvBalance() {
        return avBalance;
    }

    public SCardListItem setAvBalance(Double avBalance) {
        this.avBalance = avBalance;
        return this;
    }

    public String getState() {
        return state;
    }

    public SCardListItem setState(String state) {
        this.state = state;
        return this;
    }

    public String getErrCode() {
        return errCode;
    }

    public SCardListItem setErrCode(String errCode) {
        this.errCode = errCode;
        return this;
    }

    public String getErrMessage() {
        return errMessage;
    }

    public SCardListItem setErrMessage(String errMessage) {
        this.errMessage = errMessage;
        return this;
    }

    public Double getHold() {
        return hold;
    }

    public SCardListItem setHold(Double hold) {
        this.hold = hold;
        return this;
    }

    public String getContractType() {
        return contractType;
    }

    public SCardListItem setContractType(String contractType) {
        this.contractType = contractType;
        return this;
    }

    public Double getRest() {
        return rest;
    }

    public SCardListItem setRest(Double rest) {
        this.rest = rest;
        return this;
    }

    public Double getTradeLimit() {
        return tradeLimit;
    }

    public SCardListItem setTradeLimit(Double tradeLimit) {
        this.tradeLimit = tradeLimit;
        return this;
    }

    public Double getFinLimit() {
        return finLimit;
    }

    public SCardListItem setFinLimit(Double finLimit) {
        this.finLimit = finLimit;
        return this;
    }
}
